package demo2;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ASUS
 * Date: 2023-09-25
 * Time: 17:03
 */
public class Work3 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入你想要计算三位数以内的值：");
        int n = scanner.nextInt();
        if (n <= 9){
            System.out.println(n);

        }else {
            int a = n % 10;
            int b = (n / 10) % 10;
            int c = n / 100;
            System.out.print(a+", ");
            System.out.print(b+", ");
            if (n >= 100)
            System.out.print(c);
        }
    }
}
